<template>
	<el-table-column :width="row.width" :align="row.align || 'center'" :label="row.label || ''" :prop="row.prop"
		:fixed="row.fixed" :show-overflow-tooltip="row.showOverflowTooltip" v-if="showColumn(row)">
		<template slot-scope="scope">
			<div class="cell">{{scope.row[row.prop]}}</div>
		</template>
	</el-table-column>
</template>

<script>
	export default {
		props: {
			row: Object,
		},
		inject: ['vm'],
		methods: {
			showColumn(b) {
				if (b.show) return b.show(this.vm,b);
				return true;
			},
		}
	};
</script>

<style>
</style>